package service

import (
	"github.com/gin-gonic/gin"
)

func GetIndex(c *gin.Context) {

	c.HTML(200, "index.html", nil)

	//index, err := template.ParseFiles("index.html", "views/chat/head.html")
	//if err != nil {
	//	fmt.Println("运行错误", err)
	//	c.JSON(0, gin.H{
	//		"hello": "world",
	//	})
	//	return
	//}
	//err = index.Execute(c.Writer, "index")
	//if err != nil {
	//	fmt.Println(err)
	//	return
	//}
	//c.JSON(0, gin.H{
	//	"hello": "world",
	//})
}
